package com.lvcoding.spring5.annotation3x.injection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description 描述
 * @Date 2020-07-23 12:45 下午
 * @Author wuyanshen
 */
@Component
public class UserServiceImpl implements UserService{

    @Autowired
    public UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void save() {
        userDao.save();
    }
}
